<?php

class Inventory_model extends CI_Model {

    function __construct()
    {
        parent::__construct();
    }
    
    function get_products( $where  =array() )
    {
    	$this->db->select('*');
    	$this->db->where($where);
    	return $this->db->get('products')->result_array();
    }
    
    function get_product_prices( $where  =array() )
    {
    	$this->db->select('*');
    	$this->db->where($where);
    	return $this->db->get('product_prices')->result_array();
    }
    
    function get_product_images( $where  =array() )
    {
    	$this->db->select('*');
    	$this->db->where($where);
    	return $this->db->get('product_images')->result_array();
    }
    
    function get_product_inventory( $where  =array() )
    {
    	$this->db->select('*');
    	$this->db->where($where);
    	return $this->db->get('product_inventory')->result_array();
    }

    
    

}